home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / mac / ch17 / 17fig12b.wrl < prev    next >
Text File  |  1996-09-23  |  2KB  |  80 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Group {
  6.     children [
  7.     # Top left
  8.         Shape {
  9.             appearance Appearance {
  10.                 material Material { diffuseColor 1.0 0.35 0.23 }
  11.                 texture DEF wood ImageTexture { url "wood_g.jpg" }
  12.             }
  13.             geometry DEF square IndexedFaceSet {
  14.                 coord Coordinate {
  15.                     point [
  16.                          0.0 1.0 0.0,  0.0 0.0 0.0,
  17.                          1.1 0.0 0.0,  1.1 1.0 0.0
  18.                     ]
  19.                 }
  20.                 coordIndex [ 0, 1, 2, 3 ]
  21.             }
  22.         },
  23.     # Top center
  24.         Transform {
  25.             translation 1.25 0.0 0.0
  26.             children Shape {
  27.                 appearance Appearance {
  28.                     material Material { diffuseColor 1.0 0.45 0.23 }
  29.                     texture USE wood
  30.                 }
  31.                 geometry USE square
  32.             }
  33.         },
  34.     # Top right
  35.         Transform {
  36.             translation 2.50 0.0 0.0
  37.             children Shape {
  38.                 appearance Appearance {
  39.                     material Material { diffuseColor 1.0 0.55 0.23 }
  40.                     texture USE wood
  41.                 }
  42.                 geometry USE square
  43.             }
  44.         },
  45.     # Bottom left
  46.         Transform {
  47.             translation 0.0 -1.25 0.0
  48.             children Shape {
  49.                 appearance Appearance {
  50.                     material Material { diffuseColor 1.0 0.65 0.53 }
  51.                     texture USE wood
  52.                 }
  53.                 geometry USE square
  54.             }
  55.         },
  56.     # Bottom center
  57.         Transform {
  58.             translation 1.25 -1.25 0.0
  59.             children Shape {
  60.                 appearance Appearance {
  61.                     material Material { diffuseColor 1.0 0.55 0.43 }
  62.                     texture USE wood
  63.                 }
  64.                 geometry USE square
  65.             }
  66.         },
  67.     # Bottom right
  68.         Transform {
  69.             translation 2.50 -1.25 0.0
  70.             children Shape {
  71.                 appearance Appearance {
  72.                     material Material { diffuseColor 1.0 0.55 0.53 }
  73.                     texture USE wood
  74.                 }
  75.                 geometry USE square
  76.             }
  77.         }
  78.     ]
  79. }
  80.